package com.itheima.tlias84.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class SelectEmpDTO {
    private int id; //主键id
    private String name; //姓名
    private int gender; //性别 1男2女
    private Integer job; //职位
    private String image; //头像图片
    private LocalDate entryDate; //入职日期
    private String deptName; //对应部门名称
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime; //最后修改时间
}
